package com.cat.model.web.action.admin;

import java.io.File;

import com.cat.model.common.util.UploadFileManager;
import com.cat.model.web.action.base.AdminAction;

public class FileUploadAction extends AdminAction{
	/**
	 * 
	 */
	private static final long serialVersionUID = -5209816412956334830L;
	private File filedata;
	private String filedataFileName;
	
	public String image(){		
		String url = UploadFileManager.saveFile(filedata, filedataFileName);
		this.print("{\"err\":\"" + "" + "\",\"msg\":\"" + url + "\"}");
		return null;
	}

	public File getFiledata() {
		return filedata;
	}

	public void setFiledata(File filedata) {
		this.filedata = filedata;
	}

	public String getFiledataFileName() {
		return filedataFileName;
	}

	public void setFiledataFileName(String filedataFileName) {
		this.filedataFileName = filedataFileName;
	}
	
}
